home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / LIBRARY / TPWENG / README.DOC < prev    next >
Text File  |  1991-07-22  |  2KB  |  44 lines

  1. Paradox Engine 2.0 under Turbo Pascal For Windows
  2. _____________________________________________________________________________
  3.  
  4.  
  5. The following documents the differences between the syntax for calling
  6. Paradox 2.0 functions as found in the Paradox Engine Pascal Reference and 
  7. how they need to be called from Windows.
  8.  
  9. To compile and run the sample programs, add the following as your uses 
  10. statement:
  11.  
  12.   uses PXEngine, WinCrt;  
  13.  
  14. The function PX is not supported, but you can use the following in the 
  15. sample programs so that they compile and run:
  16.  
  17.   procedure PX(Code : integer);
  18.   begin
  19.     writeln(PXErrMsg(Code)); 
  20.   and;
  21.  
  22. You Must use PXWinInit instead of PXInit:
  23.   PX(PXWinInit('MyApp', pxShared));
  24.  
  25. Data Type Changes:
  26.   NameString needs to be declared as type PChar,
  27.   The type TDate is Longint, and 
  28.   FieldHandleArray = array[i..j] of FieldHandle;
  29.   variables of type boolean need to be changed to type Bool, and add
  30.     Uses WinTypes;  
  31.  
  32. fuctions that have a string as a parameter type to a function now
  33. need a parameter of type pChar.  You can use an array[0..N] of char.  
  34. Then use the address of the array for the parameter.
  35.  
  36. In PXGetDefaults() and PXSetDefaults(), the var SortOrder is of type char 
  37. not pointer, and the SortOrder constants are as follows:
  38.  
  39.   SortOrderAscii = 'a';           { ASCII sort order }
  40.   SortOrderInt = 'i';             { international sort order }
  41.   SortOrderNorDan = 'n';          { Norwegian/Danish sort order }
  42.   SortOrderSwedFin = 's';         { Swedish/Finnish sort order }
  43.  
  44. PXLoadOverlay function is not implemented in Windows (of Course!).